package com.kavian.blog.collect;

import java.util.List;

import com.kavian.blog.collect.site.CollectCsdn;

/**
 * 测试
 * @author kavian
 *
 */
public class Test{
	public static void main(String[] args) {
		new Test().testPageUrl();
	}
	
	/**
	 * 详细页面信息
	 */
	private void testDetailedPage(){
		CollectCsdn csdn = new CollectCsdn();
		String url = "http://blog.csdn.net/sunboy_2050/article/details/8027442";
		csdn.findDetailed(url); 
	}
	
	/**
	 * 详细页面URL
	 */
	private void testPageDetailed(){
		CollectCsdn csdn = new CollectCsdn();
		String url = "http://blog.csdn.net/www/index.html?page=1";
		List<String> list = csdn.searchDetailedUrl(url);
		
		for (String string : list) {
			System.out.println(string);
		}
	}
	
	/**
	 * 分页URL
	 */
	private void testPageUrl(){
		CollectCsdn csdn = new CollectCsdn();
		String url = "http://blog.csdn.net/mobile/index.html";
		List<String> list = csdn.searchPageUrl(url);
		
		for (String string : list) {
			System.out.println(string);
		}
	}
	
	/**
	 * 分类URL测试
	 */
	private void testSortUrl(){
		CollectCsdn csdn = new CollectCsdn();
		List<String> list = csdn.searchSort();
		
		for (String string : list) {
			System.out.println(string);
		}
	}
}